import request from '@/utils/request'

//获取字典定义列表
export function getDictDetailList(data) {
	return request({
		method: 'get',
		url: 'tbSysDictDetail/queryPageList',
		headers: {
			userButton: '39e5db5c12804eb2bed7343347bd19d8'
		},
		params: data,
	})
}

//添加字典定义
export function addedDictDetail(data) {
	return request({
		method: 'post',
		url: 'tbSysDictDetail/add',
		headers: {
			userButton: '06a6bb3b8bfe40d9b4fa71d071ab986d'
		},
		data,
	})
}

//修改字典定义
export function updateDictDetail(data) {
	return request({
		method: 'post',
		url: 'tbSysDictDetail/update',
		headers: {
			userButton: '5648aa1a68d84c568dd36d33a522933c'
		},
		data,
	})
}

//删除字典定义
export function deleteDictDetail(id) {
	return request({
		method: 'get',
		url: 'tbSysDictDetail/delete/' + id,
		headers: {
			userButton: 'ab58e4ebad53429c8df2adf3fc87e1bb'
		},
	})
}

//获取字典定义详情
export function queryDictDetail(id) {
	return request({
		method: 'get',
		url: 'tbSysDictDetail/query/' + id,
		headers: {
			userButton: '7d9cb30c37e2467ebc58f4fcb47c26a2'
		},
	})
}